package com.ali.order.enums;

/**
 * @ClassName ResultEnum
 * @Description TODO
 * @Author Alistair.Chow
 * @date 2018/12/21 16:38
 * @Version 1.0
 */
public enum ResultEnum {
    /* 参数错误 */
    PARAM_CODE(1, "参数错误"),
    /* 购物车为空 */
    CART_EMPTY(2, "购物车为空"),
    ;

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
